UpdateBoundsRequested

public interface UpdateBoundsRequested implements BrowserEvent

An event indicating that JavaScript requests to update bounds of the Browser instance.

JavaScript functions that request such an update are:

  • window.moveTo() — moves a window to the specified position.
  • window.moveBy() — moves a window a specified number of pixels relative to its current coordinates.
  • window.resizeTo() — resizes the window to the specified width and height.
  • window.resizeBy() — resizes the window by the specified pixels.

Functions

Link copied to clipboard
public Rect bounds()
Returns the new bounds in screen coordinates.
Link copied to clipboard
public Browser browser()
Returns the Browser instance initiated this event.
Link copied to clipboard
public double scaleFactor()
Returns the scale factor of the display where the Browser is located.